/* ===================================
   MOBILE-FIRST CSS FOR PAGE 5 (OTHER EVENTS)
   Designed exclusively for mobile devices
   =================================== */

/* Mobile Media Query - Apply to all mobile devices */
@media (max-width: 768px) {
    
    /* ===== 1. COMPACT NAVBAR (HEADER) ===== */
    .navbar {
        padding: 0;
    }
    
    .navbar .container {
        padding: 0.5rem 15px;
        min-height: auto;
    }
    
    .logo img {
        height: 45px;
        width: auto;
        margin-top: 4px;
    }
    
    .hamburger {
        display: flex;
        width: 30px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
        margin: 2.5px 0;
    }
    
    .nav-menu {
        position: fixed;
        right: -80%;
        top: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 80%;
        height: 100vh;
        text-align: left;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        padding: 80px 0 2rem 0;
        overflow-y: auto;
        gap: 0;
        z-index: 9999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu > li > a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    /* ===== 2. MAIN CONTENT ADJUSTMENT ===== */
    .main-content {
        padding-top: 55px;
    }
    
    /* ===== 3. RESIZED IMAGE CAROUSEL ===== */
    .carousel-section {
        height: 40vh;
        margin-bottom: 30px;
    }
    
    .event-carousel {
        height: 100%;
        width: 100%;
    }
    
    .carousel-slide {
        height: 100%;
        width: 100%;
        background-size: cover;
        background-position: center;
    }
    
    .carousel-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .event-title {
        font-size: 1.8rem;
        padding: 0 20px;
        text-align: center;
    }
    
    .carousel-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        border-width: 1.5px;
    }
    
    .prev-btn {
        left: 8px;
    }
    
    .next-btn {
        right: 8px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
    
    .indicator.active {
        width: 24px;
    }
    
    /* ===== 4. REDUCED FONT SIZES ===== */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .description-content > p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: left;
        padding: 0 10px;
    }
    
    .description-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
        text-align: left;
        padding: 0 10px;
    }
    
    .service-item h4 {
        font-size: 1rem;
    }
    
    .service-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* ===== 5. SERVICES - 2 PER ROW ===== */
    .description-section {
        padding: 50px 0 40px 0;
    }
    
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 10px;
    }
    
    .service-item {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0.8rem;
        border-radius: 10px;
        text-align: center;
    }
    
    .service-icon {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .service-item:hover {
        transform: translateY(-3px);
    }
    
    /* ===== 6. IMAGE GALLERY - 3 PER ROW WITH 1:1 RATIO ===== */
    .gallery-section {
        padding: 50px 0;
    }
    
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0 10px;
    }
    
    .grid-item {
        height: 0;
        padding-bottom: 100%; /* Creates 1:1 aspect ratio */
        position: relative;
        border-radius: 8px;
        background-size: cover;
        background-position: center;
    }
    
    .grid-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
    }
    
    /* ===== 7. REDUCED CONTACT FORM SECTION ===== */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
        padding: 0 15px;
    }
    
    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        padding: 0 15px;
    }
    
    .cta-button {
        padding: 12px 35px;
        font-size: 0.95rem;
        border-radius: 25px;
        font-weight: 600;
    }
    
    /* ===== COMPACT FOOTER ===== */
    .footer {
        padding: 1.2rem 0;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 15px;
    }
    
    .footer p {
        font-size: 0.75rem;
        line-height: 1.4;
        text-align: center;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-links a {
        font-size: 0.85rem;
    }
    
    /* ===== ADDITIONAL MOBILE OPTIMIZATIONS ===== */
    .container {
        padding: 0 10px;
    }
    
    /* Dropdown adjustments */
    .dropdown-menu {
        position: static;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: 0.9rem 2.5rem;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .dropdown-menu a:hover {
        padding-left: 2.5rem;
        background: rgba(102, 126, 234, 0.3);
        color: white;
    }
    
    /* Hamburger positioning */
    .hamburger {
        z-index: 10000;
        position: relative;
    }
    
    /* Smooth scrolling behavior */
    html {
        scroll-behavior: smooth;
    }
    
    /* Remove hover effects on touch devices */
    .grid-item:hover {
        transform: none;
    }
    
    .service-item:hover {
        transform: none;
    }
    
    /* Optimize touch targets */
    .carousel-nav-btn,
    .cta-button {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ===== EXTRA SMALL DEVICES (< 375px) ===== */
@media (max-width: 375px) {
    .event-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .service-item {
        padding: 0.8rem 0.6rem;
    }
    
    .service-icon {
        font-size: 1.5rem;
    }
    
    .service-item h4 {
        font-size: 0.9rem;
    }
    
    .service-item p {
        font-size: 0.8rem;
    }
    
    .image-grid {
        gap: 0.4rem;
    }
    
    .cta-section h2 {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 10px 28px;
        font-size: 0.9rem;
    }
}